package cn.cy.behavior.command.pattern;

/**
 * @author yangxq
 * @desc
 * @Date 2025-05-08
 */
public class TurnOffLightCommand implements Command {

    private Light light;

    public TurnOffLightCommand(Light light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.turnOff();
    }

}
